package com.bailiban.base.controller;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhulang
 * @Classname TestController
 * @Description TestController
 */
@RestController
@RequestMapping("test")
@RefreshScope
public class TestController {
    @Value("${company.name}")
    private String name;

    @GetMapping("name")
    public String test() {
        return name;
    }
}
